import config from "@/config"
import http from "@/utils/request"

export const getToken = (data) => {
	return http.post(`${config.API_SYS_BASE}/authorization/loginByAccountPassword`, data).catch((err) => {
		console.log(err)
	});
}
export const getUserInfo = (data) => {
	return http.post(`${config.API_SYS_BASE}/authorization/currentUser`, data).catch((err) => {
		console.log(err)
	});
}
export const logOut = (data) => {
	return http.post(`${config.API_SYS_BASE}/authorization/logOff`, data).catch((err) => {
		console.log(err)
	});
}
